home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Atari Compendium
/
The Atari Compendium (Toad Computers) (1994).iso
/
files
/
prgtools
/
langs
/
dl_exsrc.zoo
/
timer.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1994-06-27
|
319 b
|
20 lines
#include <osbind.h>
#include <time.h>
#define HZ_200 ((unsigned long *)0x4baL)
static unsigned long grab_hz200()
{
return *HZ_200;
}
clock_t start_timer(register clock_t *t)
{
return (*t = Supexec(grab_hz200));
}
clock_t time_since(register clock_t *t)
{
return Supexec(grab_hz200) - *t;
}